//-----------------------------------------------------------------------
// <copyright file="a_Users_SService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_Users_SService
    {
        #region a_Users_S

        public static void Createa_Users_S(a_Users_S a_Users_S)
        {            
            try
            {
                a_Users_SDAO a_Users_SDAO = new a_Users_SDAO();
                a_Users_SDAO.Createa_Users_S(a_Users_S);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_Users_S(a_Users_S a_Users_S)
        {            
            try
            {
                a_Users_SDAO a_Users_SDAO = new a_Users_SDAO();
                a_Users_SDAO.Updatea_Users_S(a_Users_S);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_Users_S(int userID)
        {            
            try
            {
                a_Users_SDAO a_Users_SDAO = new a_Users_SDAO();
                a_Users_SDAO.Deletea_Users_S(userID);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_Users_S Geta_Users_S(int userID)
        {            
            try
            {
                a_Users_SDAO a_Users_SDAO = new a_Users_SDAO();
                return a_Users_SDAO.Geta_Users_S(userID);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_Users_SCollection Geta_Users_SList(a_Users_SColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_Users_SDAO a_Users_SDAO = new a_Users_SDAO();
                return a_Users_SDAO.Geta_Users_SList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_Users_SCollection Geta_Users_SList(a_Users_SColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_Users_SDAO a_Users_SDAO = new a_Users_SDAO();
                return a_Users_SDAO.Geta_Users_SList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}